package com.jin.flashsaled.controller;


import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/demo")
public class DemoController {

    @RequestMapping("/hello")
    public String demo(Model model)
    {
        model.addAttribute("message", "Hello World");
        //返回到视图名，就是把数据返回到那个htlm文件里面
        return "hello";

    }
}
